<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<form id="pagerForm" method="get" model="viewRequest" action="#rel#">
	<input type="hidden" name="viewRequest.page" value="${page.number}" />
	<input type="hidden" name="viewRequest.size" value="${page.size}" />
	<c:forEach items="${viewRequest.params}" var="params">
		<input type="hidden" id="${params.key}" name="viewRequest.params['${params.key}']" value="${params.value}" />
	</c:forEach>
	<c:forEach items="${viewRequest.sort}" var="sort">
		<input type="hidden" name="viewRequest.sort.${sort.key}" value="${sort.value}" />
	</c:forEach>
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return dialogSearch(this);" action="${rootUrl}/system/group" method="get">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>组名称：</label>
				<input type="text" name="viewRequest.params['name_like']" value="${viewRequest.params.name_like}"/>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				<li><a class="button" href="${rootUrl}/system/group!search" target="searchDialog" targetType="dialog" parentDialogId="group" mask="true" title="查询框"><span>高级检索</span></a></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${rootUrl}/system/group/new" target="dialog" width="860" height="460" rel="group_new" title="添加"><span>添加</span></a></li>
			<li><a title="确实要删除这些记录吗?" target="selectedTodo" targetType="dialog" rel="ids" href="${rootUrl}/system/group!destroyBatch" class="delete"><span>删除</span></a></li>
			<li><a class="edit"  href="${rootUrl}/system/group/{data_id}/edit" target="dialog" width="860" height="460" rel="group_new" title="修改"><span>修改</span></a></li>
			<li class="line">line</li>
		</ul>
	</div>
	<table class="table" targetType="dialog"  width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="30" align="center" >序号</th>
				<th width="120" orderField="name">组名称</th>
				<th width="120" orderField="code" >组代码</th>
				<th width="100">操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.content}" var="group" varStatus="status">
			<tr target="data_id" rel="${group.id}">
				<td><input name="ids" value="${group.id}" type="checkbox"></td>
				<td>${status.count}</td>
				<td>${group.name}</td>
				<td>${group.code}</td>
				<td>
				    <a title="查看" target="dialog" width="860" height="460" rel="group_show" title="查看"  href="${rootUrl}/system/group/${group.id}" class="btnView">查看</a>
				    <a title="编辑" target="dialog" width="860" height="460" rel="group_edit" title="修改"  href="${rootUrl}/system/group/${group.id}/edit" class="btnEdit">编辑</a>
					<a title="确定要删除这个记录吗?" target="dialogAjaxTodo" href="${rootUrl}/system/group/${group.id}?_method=delete" class="btnDel">删除</a>
					
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="dialogPageBreak({numPerPage:this.value})">
				<option value="${page.size}">${page.size}</option>
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span>条，共${page.totalElements}条 </span>
		</div>
		<div class="pagination" targetType="dialog" totalCount="${page.totalElements}" numPerPage="${page.size}" pageNumShown="10" currentPage="${page.number}"></div>
	</div>
</div>